<%--
  Created by IntelliJ IDEA.
  User: fire'ge
  Date: 2022/4/30
  Time: 14:34
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<html>
<head>
    <title>搜 索 商 店</title>
    <link rel="stylesheet" href="/TakeawaySystem/css/Show.css" type="text/css">
</head>
<body>
<table id="name-label">
    <tr>
        <td align="center" colspan="4">你好！${user.username}<c:if test="${user == null}">游客</c:if>
            <a href="../jsp/UserCenter.jsp">返回</a>  </td>
    </tr>
</table>
<form action="/TakeawaySystem/user/searchShop" method="post">
    <table>
        <tr>
            <td>
                <input type="text" name="checkFactor" width="600" height="30">
            </td>
            <td>
                <input type="submit" value="查 询">
            </td>
        </tr>
    </table>
</form>
<table>
    <tr>
        <td id= "tableTopic">
            搜 索 结 果
        </td>
    </tr>
    <c:forEach items="${shops}" var="shop">
        <tr>
            <td class="shopTopic">
                <a href="/TakeawaySystem/user/showMenu?shopId=${shop.id}">
                        ${shop.shopName}
                </a>
            </td>
        </tr>
        <tr>
            <td class="description">
                描述：${shop.description}
            </td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
